package com.right.health.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/*
 * Created by hopeliao on 2019-12-20
 *
 */public class DoctorScheduleResponse {

     public List<DoctorScheduleInfo> reginfos;
     
     public static class DoctorScheduleInfo implements Parcelable {

         public String endtime;
         public String doctorlevel;
         public String doctorname;
         public String doctorlevelcode;
         public String shiftcode;
         public String starttime;
         public String doctorid;
         public long updatetime;
         public String shiftname;
         public long createtime;
         public String clinicunitid;
         public String scheduleid;
         public String deptid;
         public String regfee;
         public String treatfee;
         public String regstatus;
         public String regtotalcount;
         public String reginfoid;
         public String description;
         public String istimereg;
         public long regdate;
         public String regleavecount;
         public String clinicunitname;
         public String deptname;


         @Override
         public int describeContents() {
             return 0;
         }

         @Override
         public void writeToParcel(Parcel dest, int flags) {
             dest.writeString(this.endtime);
             dest.writeString(this.doctorlevel);
             dest.writeString(this.doctorname);
             dest.writeString(this.doctorlevelcode);
             dest.writeString(this.shiftcode);
             dest.writeString(this.starttime);
             dest.writeString(this.doctorid);
             dest.writeLong(this.updatetime);
             dest.writeString(this.shiftname);
             dest.writeLong(this.createtime);
             dest.writeString(this.clinicunitid);
             dest.writeString(this.scheduleid);
             dest.writeString(this.deptid);
             dest.writeString(this.regfee);
             dest.writeString(this.treatfee);
             dest.writeString(this.regstatus);
             dest.writeString(this.regtotalcount);
             dest.writeString(this.reginfoid);
             dest.writeString(this.description);
             dest.writeString(this.istimereg);
             dest.writeLong(this.regdate);
             dest.writeString(this.regleavecount);
             dest.writeString(this.clinicunitname);
             dest.writeString(this.deptname);
         }

         public DoctorScheduleInfo() {
         }

         protected DoctorScheduleInfo(Parcel in) {
             this.endtime = in.readString();
             this.doctorlevel = in.readString();
             this.doctorname = in.readString();
             this.doctorlevelcode = in.readString();
             this.shiftcode = in.readString();
             this.starttime = in.readString();
             this.doctorid = in.readString();
             this.updatetime = in.readLong();
             this.shiftname = in.readString();
             this.createtime = in.readLong();
             this.clinicunitid = in.readString();
             this.scheduleid = in.readString();
             this.deptid = in.readString();
             this.regfee = in.readString();
             this.treatfee = in.readString();
             this.regstatus = in.readString();
             this.regtotalcount = in.readString();
             this.reginfoid = in.readString();
             this.description = in.readString();
             this.istimereg = in.readString();
             this.regdate = in.readLong();
             this.regleavecount = in.readString();
             this.clinicunitname = in.readString();
             this.deptname = in.readString();
         }

         public static final Parcelable.Creator<DoctorScheduleInfo> CREATOR = new Parcelable.Creator<DoctorScheduleInfo>() {
             @Override
             public DoctorScheduleInfo createFromParcel(Parcel source) {
                 return new DoctorScheduleInfo(source);
             }

             @Override
             public DoctorScheduleInfo[] newArray(int size) {
                 return new DoctorScheduleInfo[size];
             }
         };
     }
}
